import React, { Component } from 'react'
import A1 from "./a1"
import A2 from "./a2"
import {BrowserRouter as Router,NavLink,Switch,Redirect,Route} from "react-router-dom"

 class A extends Component {
  render() {
    return (
      
      <div>
           <Switch>
              
                <Route path="/a/a1" component={A1}></Route>
                <Route path="/a/a2" component={A2}></Route>
                <Redirect from="/a" to="/a/a1"></Redirect>
           </Switch>
         
      </div>
    )
  }
}

export default A